package com.javadevmap.bean;


//本类用于测试bean的销毁DIY销毁
public class Product3_4 {
    private int id;
    private String name;
    public Product3_4(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        System.out.println("setId");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setName");
        this.name = name;
    }

    public  Product3_4(int id, String name){
        System.out.println("to Constructor01 succes！ ");
        this.id=id;
        this.name = name;

    }
//***************
    public void DIYdestroy() {
        System.out.println("该实例正在被销毁");
    }
    //**********

    //重点:37行
}
